<?php 
/**
 * 首页图片的model
 * @author Administrator
 *
 */
class YuyueccModel extends Model
{
    //数据表
    protected $trueTableName = 'jhm_key';

    //设置主键
    protected  $key = 'id';

    /**
     * 插入一条数据
     * @param array $data
     * @return Ambigous <mixed, boolean, string, false, number>
     */
    public function insert(array $data)
    {
        //字段
        $field = array(
            'id',
            'name',
            'tel',
            'ks',
            'http_url',
            'yuyuedata',
            'addtime',
            'dy_ip',
            'isdl',
            'cl_time',
            'bz_cont',

        );

        //字段过滤
        $data = $this->CheckField($data, $field);
        $data['addtime'] = date("Y-m-d H:i:s",intval(time()));
        //添加时间

        return $this->add($data);

    }
}


?>